package com.wavercaz.freeforum.services.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wavercaz.freeforum.mappers.PostReplyMapper;
import com.wavercaz.freeforum.pojo.CommonSearchParam;
import com.wavercaz.freeforum.pojo.PostReply;
import com.wavercaz.freeforum.pojo.vo.PostReplyVo;
import com.wavercaz.freeforum.services.PostReplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PostReplyServiceImpl extends ServiceImpl<PostReplyMapper,PostReply> implements PostReplyService {
    @Autowired
    private PostReplyMapper postReplyMapper;
    @Override
    public IPage<PostReplyVo> getPostReplyVoList(CommonSearchParam commonSearchParam, Page<PostReplyVo> page) {
        return postReplyMapper.getPostReplyVoList(commonSearchParam,page);
    }
}
